home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP: TCW 4.5 container class compile errors
- Date: 18 Feb 1996 20:03:13 GMT
- Organization: Borland International
- Message-ID: <4g80m1$fbk@druid.borland.com>
- References: <31275FD2.6C4A@cyberus.ca>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <31275FD2.6C4A@cyberus.ca>, tpepin@cyberus.ca says...
- >
- >Hi All,
- >
- >Has anyone out there run into the following problem? I'm trying to use one of
- the Borland
- >container classes to implement an array for one of my classes:
- >
- > #include <classlib/arrays.h>
- > #include "myclass.h"
- > TIArrayAsVector<MyClass> myList(10,0,10);
- > // code which uses the list...
- >
- >When I try and compile this source, I get the following error:
- > Error ..\TCWIN45\INCLUDE\CLASSLIB\VECTIMP.H 1216: Illegal structure
- operation in
- > function TMICVectorImp<PSpcDamage,TStandardAllocator>::Find(const
- PSpcDamage *) const
- >
- >I'm kind of at a loss as to where to even begin trying to fix this. Any help
- would
- >be greatly appreciated.
- >
-
- The place to begin is suggested by the error message. Look at line 1216 in
- vectimp.h and see what kind of operation it is trying to perform. That should
- give you a clue as to the actual problem. That stuff is hard to read, though,
- so here's a more helpful clue: PSpcDamage needs to have an operator== and an
- operator<.
- -- Pete
-
-